<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%String contextRoot = request.getContextPath();%>
<f:loadBundle basename="properties.messages" var="msg" />
<f:view>
<!doctype html>
<head>	
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>SISDEP : Sistema de Informaci<h:outputText value="#{msg.tilde_o}" />n de Espacio P<h:outputText value="#{msg.tilde_u}" />blico</title>
	<meta name="description" content="">
	<meta name="author" content="">
		<link rel="stylesheet" href="<%=contextRoot%>/css/validationEngine.jquery.css" type="text/css">
		<link rel="stylesheet" href="<%=contextRoot%>/css/template.css" type="text/css">
		<link rel="stylesheet" href="<%=contextRoot%>/css/normalize.css">
		<link rel="stylesheet" href="<%=contextRoot%>/css/uniform.css"> <!-- estilos formularios -->
		<link rel="stylesheet" href="<%=contextRoot%>/css/cuerpo.css">	
		<link rel="stylesheet" href="<%=contextRoot%>/css/richCustom.css">
</head>
<body>
<div id="marco"> <!--inicio contenedor --> 
<div class="arriba-cuerpo"></div> <!-- Burrada pa ver borde redondo en IE -->
<div class="cuerpo">
<a href="<%=contextRoot%>/index.jsf"><img src="<%= contextRoot %>/images/logos.png" /></a>
<div class="clear"></div>
<!-- Menu y Usuario init() -->
	<%@ include file="include/menuUsuario.jsp" %>
<!-- Menu y Usuario end() -->
<div class="clear"></div>
<!-- Formulario --> 
<div id="buscador">
<h2>Gesti<h:outputText value="#{msg.tilde_o}" />n de Observaciones a Formulario Recibido Ferias Decembrinas: NUEVO</h2>

<h:form id="createFeriaDecFormVenObsForm">
	<script type="text/javascript">
	</script>						

						<span class="left" >
						<label>C<h:outputText value="#{msg.tilde_o}" />digo <span class="asterisco">*</span></label>
							<h:inputText id="codigo" size="4" maxlength="4" styleClass="validate[required,custom[integer],minSize[4]]"
										value="#{feriaDecFormVenObsController.feriaDecFormVenObs.codigo}" />
						</span>
						<span class="left" style="margin-left:55px">
						<label>Estado <span class="asterisco">*</span></label>							
							<h:selectOneMenu id="estado" styleClass="validate[required]"
										value="#{feriaDecFormVenObsController.feriaDecFormVenObs.estado}"  >
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>
								<f:selectItem itemLabel="Valida" itemValue="Valida"/>			                                                                                             
                            </h:selectOneMenu>											
						</span>
						<div class="clear"></div>
						<br/>	
						<span class="left">
						<label>Problema <span class="asterisco">*</span></label>
							<h:selectOneMenu id="idProblema" styleClass="validate[required]" value="#{feriaDecFormVenObsController.feriaDecFormVenObs.idProblemaStr}">
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>   
                                    <f:selectItems value="#{masterListCache.problemsSalesType}"/>                                
                            </h:selectOneMenu>
						</span>
						<span class="left" style="margin-left:35px">
						<label>Motivo de Descarte <span class="asterisco">*</span></label>
							<h:selectOneMenu id="idMotivoDescarte" styleClass="validate[required]" value="#{feriaDecFormVenObsController.feriaDecFormVenObs.idMotivoDescarteStr}">
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>
                                    <f:selectItems value="#{masterListCache.discardReasonSalesType}"/>               
                            </h:selectOneMenu>
						</span>	
						<div class="clear"></div>
						<br/>					
						<span class="left" >
						<label>Contravenci<h:outputText value="#{msg.tilde_o}" />n<span class="asterisco">*</span></label>
							<h:selectOneMenu id="idContravencion" styleClass="validate[required]" value="#{feriaDecFormVenObsController.feriaDecFormVenObs.idContravencionStr}">
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>
                                <f:selectItems value="#{masterListCache.infringementList}"/>
                            </h:selectOneMenu>
						</span>
						<div class="clear"></div>
						<span class="left">
						<label>Observaci<h:outputText value="#{msg.tilde_o}" />n </label>
							<h:inputTextarea id="obsProblema" styleClass="validate[required,maxSize[255]]" style="width:550px !important; min-width:550px !important; max-width:550px !important; height:75px !important; min-height:75px !important; max-height:75px !important; "
										value="#{feriaDecFormVenObsController.feriaDecFormVenObs.observaciones}" />
						</span>
																	
		<br/>
		<br/>
		<div class="clear"></div>
		(<span class="asterisco"> * </span>) : Campo Obligatorio
		<div class="clear"></div>
		<span class="botones right">
		<h:commandButton id="createFeriaDecFormVenObsButton"						 
		                 type="submit" 
		                 value="Guardar" 
		                 ondblclick="return false;" 
		                 action="#{feriaDecFormVenObsController.create}" >
		</h:commandButton>		
		</span>
</h:form>
</div>
<!-- Fin formulario --> 
<div class="clear"></div>

	<!-- tabla --> 

	<table width="100%" cellspacing="0">  
		<thead>
	  	<tr>
			<th class="Corner">
		    	Informaci<h:outputText value="#{msg.tilde_o}" />n de Auditor<h:outputText value="#{msg.tilde_i}" />a
	    	</th>
	  	</tr>
		</thead>
		<tbody>
		  <tr class="odd">
			<td>Usuario Creaci<h:outputText value="#{msg.tilde_o}" />n</td>
			<td>Fecha Creaci<h:outputText value="#{msg.tilde_o}" />n</td>
			<td>Usuario <h:outputText value="#{msg.tilde_u}" />ltima Modificaci<h:outputText value="#{msg.tilde_o}" />n</td>
			<td>Fecha <h:outputText value="#{msg.tilde_u}" />ltima Modificaci<h:outputText value="#{msg.tilde_o}" />n</td>
		  </tr>					
		  <tr>
			<td>
			   <h:outputText value="#{feriaDecFormVenObsController.feriaDecFormVenObs.usuarioCrea}" />
			</td>
			<td>
			   <h:outputText value="#{feriaDecFormVenObsController.feriaDecFormVenObs.fechaCrea}" />
			</td>
			<td>
			   <h:outputText value="#{feriaDecFormVenObsController.feriaDecFormVenObs.usuarioModifica}" />
			</td>
			<td>
			   <h:outputText value="#{feriaDecFormVenObsController.feriaDecFormVenObs.fechaModifica}" />
			</td>						
		  </tr>	  
		</tbody>
	</table>


		    <h:form id="cancelManageTypeForm">
		    <span>
			<h:commandButton id="cancelCreateFeriaDecFormVenObsButton"
							 styleClass="botonsmall" 
                             type="submit" 
                             value="Cancelar" 
                             ondblclick="return false;" 
                             action="#{feriaDecFormVenObsController.cancelFeriaDecFormVenObs}" >
            </h:commandButton>
            </span>
            </h:form>		

<div class="abajo-cuerpo"></div> <!-- Burrada pa ver borde redondo en IE -->
</div> <!-- Fin contenedor -->
<div class="footer"></div>
	<script src="<%=contextRoot%>/js/jquery/lib/jquery-1.7.2.min.js"></script><!-- De ser 1ro -->
	<script src="<%=contextRoot%>/js/script.js" type="text/javascript"></script><!-- De ser 2do -->
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.uniform.min.js"></script> <!-- formularios --> 
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine-es.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
	jQ(document).ready(function() {
		jQ("input, select, input:checkbox, input:radio, input:file").uniform();
		jQ("#createFeriaDecFormVenObsForm").validationEngine('attach');
		jQ("#createFeriaDecFormVenObsForm").bind("jqv.form.result", function(event, errorFound) {
	        if(!errorFound) displayLoadingImage();
	    });
	});
	</script>
	<%@ include file="include/validationStatus.jsp" %>
	<%@ include file="include/modalMessageWindow.jsp" %>
</body>
</html>
</f:view>

